package ch.elca.lol.puissance4.board;

import ch.elca.lol.puissance4.game.Token;

/** Immutable data structure to represent board data, used by Board implementations. */
interface BoardData {
	int getWidth();
	
	int getHeight();
	
	BoardData set(int x, int y, Token t);
	
	Token get(int x, int y);
	
	boolean isNull(int x, int y);
	
	/** Returns the smallest y >= 0 such that get(x, y) is null. */
	int bottomOfCol(int x);
}